package edu.spec.wechat.dao.impl;

import edu.spec.wechat.dao.iface.ISignInSumDao;
import edu.spec.pms.model.student.SignInSum;
import org.madgecko.basic.dao.BaseDao;
import org.springframework.stereotype.Repository;

/**
 * Created by MadFrog on 2016/10/31.
 */
@Repository("signInSumDao")
public class SignInSumDao extends BaseDao<SignInSum> implements ISignInSumDao {
    @Override
    public SignInSum loadByOpenId(String openId) {
        String hql = "from SignIn where wechatOpenId = ?";
        return (SignInSum)this.queryObject(hql, openId);
    }
}
